#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main(void)
{
	int grade;
	scanf("%d", &grade);

	/*switch (grade)
	{
	case 4:printf("4\n");
		   break;
	case 5:printf("5\n");
		   break;
	case 6:printf("6\n");
		   break;
	default:printf("wrong\n");
		break;
	}*/
	/*switch (grade)
	{
	case 4: case 5:case 6:
		printf("7\n");
	default:printf("wrong\n");
		break;
	}*/
	
	switch (grade)
	{
	case 4:printf("4\n");
	case 5:printf("5\n");
	case 6:printf("6\n");
	case 7:printf("7\n");
	case 8:printf("8\n");
	case 9:printf("9\n");//break is important,can't ignore
	default:printf("wrong");
		break;
	}
	return 0;
}